#include <xp/bas/string.h>
#include <xp/bas/stdio.h>
#include <string.h>

int xp_main ()
{
	xp_printf (XP_TEXT("%u\n"), (unsigned)xp_strspn (XP_TEXT("this is a real life"), XP_TEXT("this ")));	
	xp_printf (XP_TEXT("%u\n"), (unsigned)strspn ("this is a real life", "this "));
	xp_printf (XP_TEXT("%u\n"), (unsigned)xp_strspn (XP_TEXT("this is a real life"), XP_TEXT("t")));	
	xp_printf (XP_TEXT("%u\n"), (unsigned)strspn ("this is a real life", "t"));	
	return 0;
}
